export default debounce
// 防抖函数
function debounce(fn, wait) {
	var timeout = null;
	return function() {
		var that = this,
			args = arguments;
		clearTimeout(timeout);
		timeout = setTimeout(()=>{
			fn.apply(this, args);
		}, wait);
	};
}
